package com.liveinstars.common;

/**
 * Created by guodage on 2018/4/26.
 */
public enum WarningStatus {
    ON(Byte.valueOf("1")),
    OFF(Byte.valueOf("0"));
    public Byte value;


    WarningStatus(Byte value) {
        this.value = value;
    }

    public static boolean contains(Byte status){
        for (WarningStatus warningStatus : values()) {
            if (status != null && warningStatus.value.equals(status)) {
                return true;
            }
        }
        return false;
    }
}
